From 73e72bd9a9815520021afd83dc30062e0cafceea Mon Sep 17 00:00:00 2001 From: robertl Date: Sun, 21 Dec 2003 07:53:15 +0000 Subject: [PATCH] Add deficon to geo output. --- geo.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/geo.c b/geo.c index c68fe1915..171a9546a 100644 --- a/geo.c +++ b/geo.c @@ -29,12 +29,19 @@ static int in_type; static int in_cdata; static char *cdatastr; static char *typestr; +static char *deficon; static waypoint *wpt_tmp; FILE *fd; FILE *ofd; +static +arglist_t geo_args[] = { + {"deficon", &deficon, "Default icon name", ARGTYPE_STRING }, + {0, 0, 0, 0} +}; + #define MYNAME "geo" #define MY_CBUF 4096 @@ -265,7 +272,7 @@ geo_waypt_pr(const waypoint *waypointp) fprintf(ofd, "\n"); if (waypointp->icon_descr) { - fprintf(ofd, "%s\n", waypointp->icon_descr); + fprintf(ofd, "%s\n", deficon ? deficon : waypointp->icon_descr); } if (waypointp->url) { tmp = xml_entitize(waypointp->url); @@ -291,5 +298,5 @@ ff_vecs_t geo_vecs = { geo_wr_deinit, geo_read, geo_write, - NULL + geo_args }; -- 2.30.2